<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<SCRIPT LANGUAGE="JavaScript">
var roleCache = {};
roleCache['ALL'] = '全部';
<s:iterator value="helpResultBean.resultList">   
	roleCache['<s:property value="ID"/>']='<s:property value="NAME"/>';
</s:iterator>
var toTranslate = function(_rid){
	var tt=[];
	var toWrite = function(id){
		tt.push(roleCache[id]);
	}
	if(_rid.indexOf(';')>-1){
		var tmp = _rid.split(';');
		for(var i = 0; i<tmp.length;i++){
			toWrite(tmp[i]);
		}
	}else{
		toWrite(_rid);
	}
	return tt.join(';');
}

</SCRIPT>
